package com.ruoyi.system.vo;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author Ericcc
 * @version v0.01
 * @date 2021/3/20
 */
public class SysIndexStatisticsRes implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 今日成功订单金额 */
    private BigDecimal todayOrderAmount;

    /** 本月成功订单金额 */
    private BigDecimal monthOrderAmount;

    /** 总成功订单金额 */
    private BigDecimal allOrderAmount;

    /** 今日成功代付金额 */
    private BigDecimal todayWithdrawAmount;

    /** 本月成功代付金额 */
    private BigDecimal monthWithdrawAmount;

    /** 总成功代付金额 */
    private BigDecimal allWithdrawAmount;



    public BigDecimal getTodayOrderAmount() {
        if(todayOrderAmount==null){
            todayOrderAmount = BigDecimal.ZERO;
        }
        return new BigDecimal(todayOrderAmount.stripTrailingZeros().toPlainString());
    }

    public void setTodayOrderAmount(BigDecimal todayOrderAmount) {
        this.todayOrderAmount = todayOrderAmount;
    }

    public BigDecimal getMonthOrderAmount() {
        if(monthOrderAmount==null){
            monthOrderAmount = BigDecimal.ZERO;
        }
        return new BigDecimal(monthOrderAmount.stripTrailingZeros().toPlainString());
    }

    public void setMonthOrderAmount(BigDecimal monthOrderAmount) {
        this.monthOrderAmount = monthOrderAmount;
    }

    public BigDecimal getAllOrderAmount() {
        if(allOrderAmount==null){
            allOrderAmount = BigDecimal.ZERO;
        }
        return new BigDecimal(allOrderAmount.stripTrailingZeros().toPlainString());
    }

    public void setAllOrderAmount(BigDecimal allOrderAmount) {
        this.allOrderAmount = allOrderAmount;
    }

    public BigDecimal getTodayWithdrawAmount() {
        if(todayWithdrawAmount==null){
            todayWithdrawAmount = BigDecimal.ZERO;
        }
        return new BigDecimal(todayWithdrawAmount.stripTrailingZeros().toPlainString());
    }

    public void setTodayWithdrawAmount(BigDecimal todayWithdrawAmount) {
        this.todayWithdrawAmount = todayWithdrawAmount;
    }

    public BigDecimal getMonthWithdrawAmount() {
        if(monthWithdrawAmount==null){
            monthWithdrawAmount = BigDecimal.ZERO;
        }
        return new BigDecimal(monthWithdrawAmount.stripTrailingZeros().toPlainString());
    }

    public void setMonthWithdrawAmount(BigDecimal monthWithdrawAmount) {
        this.monthWithdrawAmount = monthWithdrawAmount;
    }

    public BigDecimal getAllWithdrawAmount() {
        if(allWithdrawAmount==null){
            allWithdrawAmount = BigDecimal.ZERO;
        }
        return new BigDecimal(allWithdrawAmount.stripTrailingZeros().toPlainString());
    }

    public void setAllWithdrawAmount(BigDecimal allWithdrawAmount) {
        this.allWithdrawAmount = allWithdrawAmount;
    }
}
